/* 封装一个指令用以实现闪动提示 */
class blink{
    constructor(){
        this.restrict = 'A';
    }
    
    link(scope, ele, attrs, controller) {
        var blink = angular.element(attrs.blink);
        ele.on('click', function() {
            if (!blink.val()) {
                $.blink(blink, 5, 100)
            }
        })
    }
}

export default blink;